<template>
	<div id="contentBox">
		<div id="tableBox" style="margin:25px 25px 0" >
			<el-table :data="tableData.data" border  >
			    <el-table-column label="指标项" >
			      <template scope="scope">
			        <span >{{ scope.row.px }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="维度名称" >
			      <template scope="scope">
			        <span >{{ scope.row.px }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="分值" >
			      <template scope="scope">
			        <span >{{ scope.row.px }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="类型" >
			      <template scope="scope">
			        <span >{{ scope.row.px }}</span>
			      </template>
			    </el-table-column>
			    
			    <el-table-column label="启用状态" >
			      <template scope="scope">
			        <span >{{ scope.row.flag|flag(scope.row.flag) }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="备注" >
			      <template scope="scope">
			        <span >{{ scope.row.rmpp }}</span>
			      </template>
			    </el-table-column>
			    
			    <el-table-column label="操作" width="200">
			      <template scope="scope">
			      	<!-- <el-button size="small" @click="handleEdit(scope.$index, scope.row)">审核</el-button> -->
			      	<el-button size="small" @click="handleEdit(scope.$index, scope.row )">添加</el-button>
			        <el-button size="small" @click="handleEdit(scope.$index, scope.row ,true)">编辑</el-button>
			        
			        <el-button size="small" type="danger" @click="handleDisabled(scope.$index, scope.row)" ref="flag">{{scope.row.flag|flagF(scope.row.flag) }}</el-button>
			      </template>
			    </el-table-column>
			</el-table>
			<el-dialog title="评分标准管理" v-if="dialogSendData.dialogFormVisible" :visible.sync="dialogSendData.dialogFormVisible" :lock-scroll='false' top=10% :close-on-click-modal="false" :closeOnPressEscape="false">
                <dialogForm :dialogSendData="dialogSendData" :tableData="tableData" v-on:refreshTableData="seachData()"></dialogForm>
			</el-dialog>
		</div>
        <div class="block" style="text-align: center;margin-top: 15px;position:relative;">
		    <pagination v-on:refreshSeachData="seachData()"  :tableData="tableData" :searchForm="searchForm"></pagination>
		    <el-button  style="position:absolute;right:25px;top:0;" type="primary" @click="handleEdit()">添加评分标准</el-button>
		</div>
		
	</div>
	
</template>
<script src="./index.js"></script>
<style scoped lang="stylus">
	@import "./index.styl"
</style>